package com.cdut.cn.boke.service.impl;

import com.cdut.cn.boke.dao.BlogDao;
import com.cdut.cn.boke.pojo.Blog;
import com.cdut.cn.boke.service.BlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class BlogServiceImpl implements BlogService {
    @Autowired
    private BlogDao blogDao;

    @Override
    public List<Blog> selectBlog() {
        return blogDao.selectBlog();
    }

    @Override
    public Blog selectBlogByID(Integer id) {
        return blogDao.selectBlogByID(id);
    }

    @Override
    public int addBlog(Blog blog) {
        return blogDao.addBlog(blog);
    }
}